package com.cabal.common.errcode;

/**
 * 返回异常名称
 * @author chenxiangyan
 * @create 2019-11-14
 */
public enum ErrorCodeEnum implements TmsConstant {

    ERROR_100001("100001","推单失败"),
    ERROR_100002("100002","签名认证失败"),
    ERROR_100003("100003","版本输入错误"),
    ERROR_100004("100004","无效的Appid"),
    PARAM_ERROR("250201","参数不正确"),
    //    ERROR_250202("250202","支付交易号已经存在"),
    ERROR_250203("250203","非法身份"),
    ERROR_250204("250204","非法手机号码"),
    ERROR_250205("250205","没有权限访问该服务"),
    ERROR_250206("250206","企业标识不正确"),
    SYSTOM_ERROR("250207","系统错误"),

    USER_NOT_EXIST("300001","用户不存在或者密码错误"),
    USER_FORBID_ERROR("300003","账号已被禁用，请与管理员联系"),
    USER_LOGIN_NUM_ERROR("300004","登录次数超限，请与管理员联系"),
    USER_AUDIT_STATUS_ERROR("300005","帐号审核中，审核通过后方可登录"),

    ROLE_ERROR("400001","该角色有关联账号，请先删除账号后再进行角色删除！"),
    EXPORT_ERROR("400002","导出失败"),

    RECORD_ERROR("500001","备案失败"),
    RECORD_APPROVE_ERROR("500002","备案审核失败"),
    RECORD_TENANT_DOES_NOT_EXIST("500003", "备案商户不存在"),
    RECORD_TENANT_UNSUCCESSFUL("500004", "商户未备案成功"),

    SP_DECLARE_LOGISTICS_NOT_EXIST("600001", "物流单信息不存在"),
    SP_DECLARE_BODY_NOT_EXIST("600002", "三单信息不存在"),
    SP_DECLARE_BODY_PIC_NOT_EXIST("600003", "必须随附单证不齐全");

    private String code;
    private String value;


    ErrorCodeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
